<template>
  <div>
    <div class="bg">
      <div class="login_con">
        <div class="login_box">
          <div class="border">
            <img src="../assets/logo.png" alt="" class="login-img" />
          </div>
          <div class="head">
            <span class="title">后台管理系统</span>
          </div>
          <div class="output_wrap">
            <!-- 登录login组件 -->
            <entry> </entry>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Entry from '../components/Entry.vue'
export default {
  name: 'Login',
  data() {
    return {
      username: '',
      password: '',
    }
  },
  methods: {
    reset() {
      this.username = ''
      this.password = ''
    },
    sign() {},
  },
  components: {
    Entry,
  },
}
</script>
<style lang="less" scoped>
.bg {
  width: 100%;
  height: 100vh;
  // background: linear-gradient(to bottom, #0d5b9d, #5794c3);
  background: url('../assets/图片.jpg') no-repeat;
  background-size: 100% 100%;
  background-position: right center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  .login_con {
    width: 450px;
    height: 350px;
    position: absolute;
    left: 70px;
    .login_box {
      width: 100%;
      height: 100%;
      // background: linear-gradient(to bottom, #0d5b9d, #5794c3);
      background-color: #ffffff;
      border-radius: 15px;
      position: relative;
      .border {
        width: 100px;
        height: 100px;
        border-radius: 50px;
        position: absolute;
        left: 50%;
        top: -40px;
        transform: translateX(-50px);
        .login-img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
.head {
  display: flex;
  justify-content: center;
  .title {
    color: #0d5b9b;
    font-size: 30px;
    padding-top: 55px;
  }
}
.output_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}
// .footBox {
//   display: flex;
//   justify-content: center;
//   padding: 30px 0;
//   .styBut {
//     width: 50px;
//     height: 30px;
//     background-color: #4e83b9;
//     margin-right: 10px;
//     line-height: 18px;
//     border-radius: 10%;
//     button {
//       width: 100%;
//       height: 100%;
//       background: none;
//       border: none;
//       line-height: 20px;
//       color: #fff;
//       font-size: 12px;
//       cursor: pointer;
//     }
//   }
// }
</style>
